package org.taohuawu.service.fallback;

import org.springframework.stereotype.Component;
import org.taohuawu.pojo.Item;
import org.taohuawu.service.ItemFeignService;
import org.taohuawu.web.util.JsonResult;

import java.util.List;

@Component
public class ItemFeignServiceFallback implements ItemFeignService {
    @Override
    public JsonResult<List<Item>> getItems(String orderId) {
        return JsonResult.err("无法获取订单商品列表");
    }

    @Override
    public JsonResult decreaseNumber(List<Item> list) {
        return JsonResult.err("无法修改商品库存");
    }
}
